package com.piece.module.spider.dto;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.piece.core.framework.annotation.office.ExcelCellConvert;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;

@ExcelIgnoreUnannotated
@ApiModel(value = "搜索引擎规则导出对象")
public class SearchRuleDTO implements Serializable {

    @ExcelProperty(index = 0, value = "搜索引擎名称")
    @ApiModelProperty(value = "搜索引擎名称")
    private String name;

    @ExcelProperty(index = 1, value = "搜索引擎地址")
    @ApiModelProperty(value = "搜索引擎地址")
    private String url;

    @ExcelProperty(index = 2, value = "代理")
    @ExcelCellConvert(convertFormat = "0=是,1=否", combo = {"是","否"})
    @ApiModelProperty(value = "是否使用代理")
    private String proxy;

    @ExcelProperty(index = 3, value = "搜索条件")
    @ApiModelProperty(value = "搜索条件表达式")
    private String paths;

    @ExcelProperty(index = 4, value = "标题表达式")
    @ApiModelProperty(value = "搜索结果标题表达式")
    private String titleXpath;

    @ExcelProperty(index = 5, value = "分组表达式")
    @ApiModelProperty(value = "搜索结果分组表达式")
    private String groupXpath;

    @ExcelProperty(index = 6, value = "大小表达式")
    @ApiModelProperty(value = "搜索结果大小表达式")
    private String sizeXpath;

    @ExcelProperty(index = 7, value = "日期表达式")
    @ApiModelProperty(value = "搜索结果日期表达式")
    private String dateXpath;

    @ExcelProperty(index = 8, value = "上级路径表达式")
    @ApiModelProperty(value = "搜索结果磁力地址上级路径表达式")
    private String rootXpath;

    @ExcelProperty(index = 9, value = "磁力地址表达式")
    @ApiModelProperty(value = "搜索结果磁力地址表达式")
    private String magnetXpath;

    @ExcelProperty(index = 10, value = "文件表达式")
    @ApiModelProperty(value = "搜索结果文件表达式")
    private String filesXpath;

    @ExcelProperty(index = 11, value = "提取码")
    @ApiModelProperty(value = "提取码")
    private String accessCode;
}
